<?php
include 'sql_config.php';

$id = $_REQUEST['id'];

$sql = "DELETE FROM rent WHERE id=$id";
if($conn->query($sql) === TRUE){
    echo("删除成功");
}else{
    echo("删除失败");
}
?>